<?php

use Faker\Generator as FakerGen;

$factory->define(App\Contact::class, function (FakerGen $faker) {
    $fk_cn = Faker\Factory::create('zh_CN');
    $gender = $fk_cn->randomElement(["男","女"]);
    return [
        "gender" => $gender,
        "name" => $gender=="男"?  $fk_cn->name("male") : $fk_cn->name('female'),
        "birth_date" => $faker->dateTimeBetween("-60 years","-18 years"),
        "mobile_phone" => $faker->randomElement(["130","131","139","180","189","159"]) . $faker->numerify("########"),
        "email" => $faker->unique()->email(),
    ];
});
